package com.beta.cust.bind.constant;

/**
 * @Description TODO
 * @Author lixin
 **/
public interface RedisConstant {
    String BASE_KEY = "cust-bind-service:";

    String PHONE_VERIFICATION_CODE = BASE_KEY + "phone:%s:code";

    String LATEST_AUTH_PHONE = BASE_KEY + "latest:auth:corpId:%s:userId:%s";

    String AUTH_LOCK_KEY = BASE_KEY + "AUTH:LOCK:KEY:userID:%s:externalUserId:%s";


    /**
     * 保证只有一个线程去获取企业微信access_token，锁的时长是3秒
     */
    Long ACCESS_TOKEN_LOCK_TIME = 3L * 1000;

    Long WAIT_TIME = 2L;

    Long RELEASE_TIME = 5L;

    Long CALL_BACK_WAIT_TIME = 3L * 1000;

}
